from tools.sms import YunTongXin
from dadablong.celery import app

@app.task
def send_sms_c(phone, code):


    config = {
        "accountSid": "8a216da88185a9c00181a9046c1a0767",
        "accountToken": "aa68731ea7ce487caf1eb8e7c686eea9",
        "appId": "8a216da88185a9c00181a9046d22076e",
        "templateId": "1",
    }

    yun = YunTongXin(**config)
    res = yun.run(phone, code)
    return res